#include "Data.hpp"
#include <iostream>

int main()
{
    try
    {
        Data today{2002, Month::Aug, 888};
        std::cout << today << std::endl;
    }
    catch (Data::Invalid_Data &e)
    {
        std::cerr << "日期错误！" << '\n';
        exit(-1);
    }

    return 0;
}